<script type="text/javascript" src="<?php echo base_url() . SKINSPATH; ?>js/jHtmlArea/scripts/jHtmlArea-0.7.5.js"></script>
<link rel="Stylesheet" type="text/css" href="<?php echo base_url() . SKINSPATH; ?>js/jHtmlArea/style/jHtmlArea.css" /><div class="content-box">
<style type="text/css">
        /* body { background: #ccc;} */
        div.jHtmlArea .ToolBar ul li a.custom_disk_button 
        {
            background: url(images/disk.png) no-repeat;
            background-position: 0 0;
        }
        
        div.jHtmlArea { border: solid 1px #ccc; }
    </style>
<div class="box-header clear">
        <h2><?php echo lang('pg_email_termination') ?></h2>
    </div>
    <div class="box-body clear">
        <?php echo validation_errors(); ?>
            <?php echo form_open(base_url().'termination/email/'.$termination->id); ?>
            <div class="form-field clear">
	            <label class="form-label fl-space2"><?php echo lang('lbl_email_user') ?> :</label>
	            <input type="text" value="<?php echo set_value('email', $termination->email); ?>" name="email" class="text small" />
	        </div>
	        <div class="form-field clear">
	            <label class="form-label fl-space2"><?php echo lang('lbl_contract') ?> :</label>
	            <div style="float:left;">
	            <textarea id="content" name="content" cols="130" rows="15"><?php echo $content;?></textarea>
	            </div>
	        </div>
            <div class="form_submit">
                <input type="submit" class="submit" value="<?php echo lang('btn_save') ?>" id="save" name="save">
                <input onclick='location.href="<?php echo base_url() ?>termination"' type="button" class="submit" value="<?php echo lang('btn_cancel') ?>" name="cancel">
            </div>
        <?php echo form_close();?>
    </div>
</div>
<script type="text/javascript">    
        $(function() {
            $("#content").htmlarea(); 
        });    
 </script>  